<template>
  <div id="baseApp">
    <div id="layout-wrapper">
      <div class="layout-header">头部导航:</div>
      <div>
        <router-link to="/about">主应用的路由</router-link>
      </div>
      <div>
        <router-link to="/vue-micro0">子应用vue-micro0</router-link>
      </div>
      <div>
        <router-link to="/vue-micro1">子应用vue-micro1</router-link>
      </div>
    </div>

    <div id="subapp-viewport"></div>
    <router-view />
  </div>
</template>

<style lang="less">
#baseApp {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
